﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ORM.Common.DataAnnotations;
using ORM.Resources;

namespace ORM.Business.Models.Entities
{
    public class VotedGuideComment
    {
        #region Primitive properties

        public int Id { get; set; }
        [RequiredExtended]
        public int CommentId { get; set; }

        [RequiredExtended]
        [Column("VotedBy")]
        public int VotedById { get; set; }

        [RequiredExtended]
        public DateTime VotedDate { get; set; }

        public bool IsUpVote { get; set; }

        #endregion

        #region Navigation properties

        [ForeignKey("CommentId")]
        public virtual GuideComment Comment { get; set; }

        [ForeignKey("VotedById")]
        public virtual user VotedBy { get; set; }

        //public virtual ICollection<ReportedAnswer> ReportedAnswers { get; set; }
        //public virtual ICollection<VotedAnswer> VotedAnswers { get; set; }

        #endregion
    }
}